﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;

namespace Mindfor.Web.Modules.System
{
	/// <summary>
	/// Model for SystemController.Routes action.
	/// </summary>
	public class RoutesModel
	{
		/// <summary>
		/// Gets or sets registered routes.
		/// </summary>
		public RouteCollection Routes { get; set; }

		/// <summary>
		/// Gets or sets routes that match passed url.
		/// </summary>
		public IEnumerable<RouteData> MatchRoutes { get; set; }

		/// <summary>
		/// Initialzies new instance.
		/// </summary>
		/// <param name="routes">Registered routes.</param>
		public RoutesModel(RouteCollection routes)
		{
			Routes = routes;
		}
	}
}
